import request from '@/utils/request'

// 查询组件相互作用力关系列表
export function listComponentInteraction(query) {
  return request({
    url: '/business/componentInteraction/list',
    method: 'get',
    params: query
  })
}

// 查询组件相互作用力关系详细
export function getComponentInteraction(id) {
  return request({
    url: '/business/componentInteraction/' + id,
    method: 'get'
  })
}

// 新增组件相互作用力关系
export function addComponentInteraction(data) {
  return request({
    url: '/business/componentInteraction',
    method: 'post',
    data: data
  })
}

// 修改组件相互作用力关系
export function updateComponentInteraction(data) {
  return request({
    url: '/business/componentInteraction',
    method: 'put',
    data: data
  })
}

// 删除组件相互作用力关系
export function delComponentInteraction(id) {
  return request({
    url: '/business/componentInteraction/' + id,
    method: 'delete'
  })
}





//保存组件关系数据
export function saveInteractionRelations(data){
	return request({
		url: '/business/componentInteraction/saveInteractionRelations',
		method: 'post',
		data: data
	})
}